package com.log.blog_backend.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.log.blog_backend.Dao.ArticleDetail;
import com.log.blog_backend.common.Result;
import com.log.blog_backend.entity.Article;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface ArticleService extends IService<Article> {
    Result savePage(Article article, HttpServletRequest httpServletRequest);

    Result getAllArticles(HttpServletRequest httpServletRequest);

    Result uploadArticle(Article article, HttpServletRequest httpServletRequest);

    Article getArticle(Long articleId);

    Result getHotpotArticles();

    Result  getArticleListBySearchContent(String searchContent);

    Result countUserReleaseArticle(Long userId);
}
